import 'package:flutter/material.dart';
import 'package:whale/helper/utils/util.dart';
import 'package:whale/pages/means/subs/means_detail/index.dart';
import 'more.dart';

import 'article.dart';
import 'noti.dart';

class MeansDetailContentView extends GetView<MeansDetailController> {
  const MeansDetailContentView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    var state = controller.state;
    return GetBuilder<MeansDetailController>(builder: (_) {
      return TPTabBarView(controller: state.tabCtrl, children: [
        MeansDetailArticleView(
          data: state.mod?.documentText ?? '',
        ),
        MeansDetailNotiView(
          data: state.notiMd?.caseContent ?? '',
        ),
        const MeansDetailMoreView(),
      ]);
    });
  }
}
